package org.intrasearch.core;

import com.google.inject.ImplementedBy;

import java.util.Collection;

@ImplementedBy(InvertedIndexImpl.class)
public interface InvertedIndex
{
    String WORD_DELIMETER = " ,.|-=:;/";

    Collection<ArtifactId> artifactsByWord(String word);

    void put(String word, Collection<ArtifactId> artifactIds);

    void flush();
}
